package org.zjvis.datascience.common.graph.model;

import lombok.Getter;

/**
 * @description 通用异常code
 * @date 2020-03-26
 */
@Getter
public enum GraphDataErrorCode {

    /** graph */
    GRAPH_LOAD_ATTRS_TYPE_CONFLICT(90001, "属性类型冲突"),
    GRAPH_LOAD_REQUIRED_KEY_MISS(90002, "缺少必填字段"),
    GRAPH_LOAD_REQUIRED_INTEGER_ID(90003, "id标识必须为整数"),
    GRAPH_LOAD_NODE_NOT_FOUND(90004, "找不到节点"),
    GRAPH_LOAD_CSV_HEAD_ERROR(90005, "数据标题有误，无法识别"),
    GRAPH_FORMAT_ERROR(90006, "图文件格式错误"),
    GRAPH_FILE_PARSE_ERROR(90007, "文件解析失败"),
    ;

    Integer code;
    String msg;

    GraphDataErrorCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
